<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<load href="__JS__/menu.js" />
		<load href="__JS__/leftmenubar.js" />
		<load href="__CSS__/header.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传文件夹名编辑</title>
	<load href="__JS__/jQuery/jquery.js" />
    <load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/classfile/id/{$id}';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>

<body>
	<layout name="Auth:header" />
	<div class="nowposition">
		当前位置：
		<a href='__APP__/index/index'  class="nowpositionhref">主页</a>>
		<a href='__URL__/index'  class="nowpositionhref">后台管理</a>>
		<a href='__URL__/coursedetail'  class="nowpositionhref">教学班管理</a>>
		<a href='__URL__/classfile/id/{$id}'  class="nowpositionhref">作业管理</a>>
		<a href=""   class="nowpositionhref">上传文件夹名编辑</a>
	</div>
	<layout name="Auth:leftmenu" />
	<div class="pathedit">
		<form id='form1' method="post" action="__URL__/pathupdate" >
			<input type="hidden" name="id" value={$vo.id}>
			<input type="hidden" name="classid" value={$vo.classid}>
			<input type="hidden" name="path" value={$vo.pname}>
			<div id='result' style="position:relative; left:700px;"></div>	
			<table border="0" align="center">
				<tr>
					<td width="400" >文件夹名称 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;{$vo.pname}</td>
				</tr>
				<tr>
					<td width="400" >修改文件夹名称：<input type="text" name="pname"><td/>				
				</tr>
				<tr>
					<td><input type="submit" value="更新"></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
